#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int leastMinutes(int n) {
        int dow = 1;
        int ret = 1;
        while (dow < n)
        {
            ret++;
            dow *= 2;
        }

        return ret;
    }
};